import request from '@/utils/request'
import requestMock from '@/utils/request-mock'

// 发送请求三级菜单接口
export const reqGetProductList = () => {
	return request({
		method: 'GET',
		// http://sph-h5-api.atguigu.cn/product/getBaseCategoryList
		url: '/product/getBaseCategoryList',
	})
}

/**
 * 请求banners图片 模拟的数据
 * @returns 首页轮播图数据
 */
export const reqGetBanners = () => {
	return requestMock({
		method: 'GET',
		url: '/getBanners',
	})
}

/**
 * 请求floor数据 模拟数据
 * @returns 楼层数据
 */
export const reqGetFloor = () => {
	return requestMock({
		method: 'GET',
		url: '/floor',
	})
}
